package my.diplom.dao;

import my.diplom.entity.Category;
import my.diplom.entity.Project;
import my.diplom.entity.User;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gb
 * Date: 13.07.2009
 * Time: 23:50:00
 * To change this template use File | Settings | File Templates.
 */
public interface IProjectDAO {
    void create(Project project);
	void update(Project project);
	Project getById(Long projectId);
    Project getById(Long projectId, boolean initUsers);
	List<Project> getAll();
    List<Project> getByUser(User user);
    List<Project> getByLogin(String login);
	Project getByName(String projectName);
	void delete(Project project);
}
